<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
        height: 300px;
        background-color:pink;
        color: rgb(149, 183, 244);
        text-align: center;
        line-height: 300px;
        font-size: 28px;
        /* 需要过度的属性名称 */
        transition-property: font-size;
        /* 设置过度持续时长*/
        transition-duration: 2s;
        /* 设置过度速度曲线 */
        transition-timing-function: linear;
        /* 设置多个属性同时过渡*/
        transition:font-size 2s linear,color 2s linear,background-color 2s linear;
    }
    /* 过渡需要触发条件*/
    div:hover{
        font-size: 68px;
        color: aqua;
        background-color: bisque;
    }
    img{
        transition: width 2s linear;
    }
    img:hover{
        width: 250px;
    }
    </style>
</head>
<body>
    <div>吴怡静</div>
    <img src="D:\实训4代码\音视频\6.jpg" alt="">
</body>
</html>